package com.atlc.preview.project.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
 * @author 梁冲
 * @version 1.0
 * @email 1357042069@qq.com
 * @date 2021/11/24
 */
public class Pages implements Serializable {

    private String title;

    private List<String> types;

    private Integer totalScore;

    private List<Problem> problemList = new ArrayList<>();


    @Override
    public String toString() {
        return "Pages{" +
                "title='" + title + '\'' +
                ", types=" + types +
                ", totalScore=" + totalScore +
                ", problemList=" + problemList +
                '}';
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public List<String> getTypes() {
        return types;
    }

    public void setTypes(List<String> types) {
        this.types = types;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public List<Problem> getProblemList() {
        return problemList;
    }

    public void setProblemList(List<Problem> problemList) {
        this.problemList = problemList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Pages)) return false;
        Pages pages = (Pages) o;
        return title.equals(pages.title) && types.equals(pages.types) && totalScore.equals(pages.totalScore) && problemList.equals(pages.problemList);
    }

}
